Pod::Spec.new do |s|
  s.name         = "UICommon"
  s.version      = "1.2.0"
  s.summary      = "UICommon library"
  s.homepage     = "http://www.sdkbus.com"
  s.author       = { 'UICommon' => 'http://www.sdkbus.com' }
  s.license      = {
         :type => 'Apache License, Version 2.0', :text => <<-LICENSE
         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.
         You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

         Unless required by applicable law or agreed to in writing, software
         distributed under the License is distributed on an "AS IS" BASIS,
         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         See the License for the specific language governing permissions and
         limitations under the License.
         LICENSE
         }
  s.platform     = :ios
  s.ios.deployment_target = '6.0'
  s.source ={:git=>'http://test.gitlab.sdo.com/ios/sdguicommon.git',:tag=>s.version.to_s}
  s.requires_arc = true

#添加一个组建需要添加一个subspec描述
  s.subspec 'iToast' do |sp|
    sp.source_files = 'components/iToast/iToast.{h,m}'
    sp.requires_arc = false
  end

  s.subspec 'FAlertView' do |sp|
    sp.source_files = 'components/FAlertView/FAlertView.{h,m}'
  end




#其它选项：
#资源文件,需要的话写在子模块中
#  s.resources = "PushMessage/GChatBasic.bundle",
#               'PushMessage/GChat.xcassets',
#               'PushMessage/*.png'

#  s.prefix_header_file = "PushMessage/UICommon-Prefix.pch"

#依赖.dylib，需要的话写在子模块中
#  s.libraries = 'c++','stdc++'

#依赖的apple的framework，需要的话写在子模块中
s.frameworks = 'Foundation', 'UIKit'

#依赖开源库，需要的话写在子模块中
#  s.dependency 'AFNetworking','2.5.4'
#依赖本地编译好的库，需要的话写在子模块中
#  s.ios.vendored_libraries = 'PushMessage/audio/lib/libopencore-amrnb.a'

end


